//package com.yz.design.responsibilityDegin;
//
//import org.springframework.beans.BeanUtils;
//
//public class RoborderConsumerAdapter {
//
//    private OrderConsumer orderConsumer;
//
//    public RoborderConsumerAdapter(OrderConsumer orderConsumer) {
//        Assert.notNull(orderConsumer, "orderConsumer is null");
//        this.orderConsumer = orderConsumer;
//    }
//
//    /**
//     * 消费
//     */
//    public void consumerMessages() {
//        AbstractCommonListener listener = BeanUtils.instantiate(GlobalOrderListener.class);
//        this.orderConsumer.subscribe(listener.getTopic(), "*", (MessageOrderListener) listener);
//    }
//
//}